package com.example.lbs.dto;

import com.example.lbs.model.Shop;

public class ShopDTO {
    private Long id;
    private String name;
    private String brand;
    private String address;
    private Double lng;
    private Double lat;
    private Double distanceMeters;

    public static ShopDTO from(Shop s, Double distanceMeters) {
        ShopDTO dto = new ShopDTO();
        dto.id = s.getId();
        dto.name = s.getName();
        dto.brand = s.getBrand();
        dto.address = s.getAddress();
        dto.lng = s.getLng();
        dto.lat = s.getLat();
        dto.distanceMeters = distanceMeters;
        return dto;
    }

    public Long getId() { return id; }
    public String getName() { return name; }
    public String getBrand() { return brand; }
    public String getAddress() { return address; }
    public Double getLng() { return lng; }
    public Double getLat() { return lat; }
    public Double getDistanceMeters() { return distanceMeters; }

    public void setId(Long id) { this.id = id; }
    public void setName(String name) { this.name = name; }
    public void setBrand(String brand) { this.brand = brand; }
    public void setAddress(String address) { this.address = address; }
    public void setLng(Double lng) { this.lng = lng; }
    public void setLat(Double lat) { this.lat = lat; }
    public void setDistanceMeters(Double distanceMeters) { this.distanceMeters = distanceMeters; }
}